package com.yuan.yblog.crud.entity;

import java.io.Serial;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
* @author hepeiyuan
* @date 2024-06-04
*/
@Data
@TableName("user")
@Schema(description = "用户表")
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户昵称")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "邮箱地址")
    private String email;

    @Schema(description = "手机电话")
    private String mobile;

    @Schema(description = "积分")
    private Integer point;

    @Schema(description = "个性签名")
    private String sign;

    @Schema(description = "性别，男1女0")
    private String gender;

    @Schema(description = "微信号")
    private String wechat;

    @Schema(description = "vip等级1~6，0表示普通人")
    private Integer vipLevel;

    @Schema(description = "生日")
    private Date birthday;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "内容数量")
    private Integer postCount;

    @Schema(description = "评论数量")
    private Integer commentCount;

    @Schema(description = "状态，1生效，0删除/封禁")
    private Integer status;

    @Schema(description = "最后的登陆时间")
    private Date lasted;

    @Schema(description = "创建日期")
    private Date created;

    @Schema(description = "最后修改时间")
    private Date modified;

    @Schema(description = "收藏数量")
    private Integer collectCount;

}